package com.tencreat.common.enums.account;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 支付公司枚举
 *
 * @author zixin
 * @company 深圳腾创互联科技有限公司
 * @link https://tencreat.com
 * @date 2022/7/7 10:07
 */

@Getter
public enum PayCompanyEnum {

    /**
     * 支付公司
     */
    PLATFORM(0, "平台"),
    LIAN_LIAN(1, "连连"),
    SHOU_XIN_YI(2, "首信易"),
    HUI_FU(3, "汇付"),
    SHAN_DE_BAO(4, "杉德宝");

    @EnumValue
    private final int value;

    @JsonValue
    private final String desc;

    PayCompanyEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }
    /**
     * 单个枚举的展示
     */
    @Override
    public String toString() {
        return value + "-" + desc;
    }
}
